<?php
if(!defined('IN_XLR')) {
	exit('Access Denied');
}

//上传照片
function api_my_invite_list($apiReq){
	global $_SGLOBAL, $_CONFIG;

    $page_no = 1;
	if(isset($apiReq['page_no'])){
	    $page_no = $apiReq['page_no'];
	}
	$pagesize = 10 ;
  	$rs_number = ($page_no - 1) * $pagesize ;

    $sql = "select a.*,a.id as invite_id,b.nickname,b.thumb,b.height,b.sex from invite a,member b where a.member_id=b.id order by a.id desc limit $rs_number,$pagesize";
	$invite_list = get_db()->get_results($sql);
	$count = count($invite_list);
	//输出
	$apiOut["returncode"] = "0";
  	$apiOut["apiReq"] = $apiReq;
	$apiOut["invite_list"] = $invite_list;
 	$apiOut["count"] = $count;
 	$apiOut["page_no"] = $page_no;
  
	return $apiOut;
}
